//
//  SYPictureModel.swift
//  SYWeibo
//
//  Created by Saya on 16/4/13.
//  Copyright © 2016年 黄金果. All rights reserved.
//

import UIKit

class SYPictureModel: NSObject {
    
    var thumbnail_pic:String?
    
    init(dict:[String:String]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forKey key: String) {
        let largetImage:String = (value as! String).stringByReplacingOccurrencesOfString("thumbnail", withString: "bmiddle")
        super.setValue(largetImage, forKey: key)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) { }
}
